{
  enable = true;
  scripts = with pkgs.mpvScripts; [
    uosc
    reload
    thumbfast
  ];
  config = {
    osd-bar = "no";
    border = "no";
    vo = "gpu-next";
    ao = "alsa";
    gpu-context = "waylandvk";
    hwdec = "nvdec";
    hwdec-codecs = "all";
    deband = "yes";
    pause = "yes";
    sub-auto = "fuzzy";
    audio-file-auto = "fuzzy";
    blend-subtitles = "video";
    demuxer-max-bytes = "200MiB";
    glsl-shaders = builtins.concatStringsSep ":" [
      (pkgs.fetchurl {
        name = "FSRCNNX_x2_16-0-4-1.glsl";
        url = "https://github.com/igv/FSRCNN-TensorFlow/releases/download/1.1/FSRCNNX_x2_16-0-4-1.glsl";
        hash = "sha256-1aJKJx5dmj9/egU7FQxGCkTCWzz393CFfVfMOi4cmWU=";
      })
      (pkgs.fetchurl {
        name = "CfL_Prediction.glsl";
        url = "https://raw.githubusercontent.com/Artoriuz/glsl-chroma-from-luma-prediction/main/CfL_Prediction.glsl";
        hash = "sha256-04DnwkfBc5Y001iu+cSjp8oArLSMNctuYK2ymaSfFAE=";
      })
    ];
  };
  scriptOpts = {
    uosc = {
      languages = "zh-hans";
      pause_indicator = "static";
      controls = "menu,gap,play-pause,gap,subtitles,audio,<has_chapter>chapters,<has_many_edition>editions,<has_many_video>video,<stream>stream-quality,gap,space,speed,space,shuffle,loop-playlist,loop-file,gap,prev,items,next,gap,fullscreen";
    };
  };
  bindings = {
    MBTN_RIGHT = "script-binding uosc/menu";
    "Ctrl+Alt+t" = "script-binding thumbfast/thumb_rerun";
    "Ctrl+t" = "script-binding thumbfast/thumb_toggle";
  };
}
